package com.lwc.controller;

import com.lwc.bean.Order;
import com.lwc.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderController {


@Autowired
    OrderService orderService;

    @PostMapping("/order")
    public  void  test(@RequestBody Order order){
            orderService.save(order);

    }


}



